import IdEnum from '@/framework/infra/enum/IdEnum'
import IdEnumItem from '@/framework/infra/enum/IdEnumItem'

// 售后状态,
// 0:未申请，1：已申请退货退款，2：已申请退款，3：已申请换货，
// 10: 待退货,   11: 退货驳回, 12:退货中， 13：退货失败，
// 21：退款驳回， 22：退款中, 23：退款成功，24：退款失败,
// 30：待换货，31：换货驳回， 32:换货中，33：换货成功，34：换货失败
// -1：已取消

export default class AfterSaleStatusEnum extends IdEnum {
  static NOT_APPLIED = new IdEnumItem(0, '')

  static RETURN_SKU_AMOUNT_APPLIED = new IdEnumItem(1, '已申请退货退款')
  static RETURN_AMOUNT_APPLIED = new IdEnumItem(2, '已申请退款')
  static EXCHANGE_SKU_APPLIED = new IdEnumItem(3, '已申请换货')

  static WAIT_RETURN_SKU = new IdEnumItem(10, '待退货')
  static RETURN_SKU_REJECTED = new IdEnumItem(11, '退货驳回')
  static RETURN_SKU_ING = new IdEnumItem(12, '退货中')
  static RETURN_SKU_FAILED = new IdEnumItem(13, '退货失败')

  static RETURN_AMOUNT_REJECTED = new IdEnumItem(21, '退款驳回')
  static RETURN_AMOUNT_ING = new IdEnumItem(22, '退款中')
  static REFUND_AMOUNT_SUCCESS = new IdEnumItem(23, '退款成功')
  static REFUND_AMOUNT_FAIL = new IdEnumItem(24, '退款失败')

  static WAIT_EXCHANGE_SKU = new IdEnumItem(30, '待换货')
  static EXCHANGE_SKU_REJECTED = new IdEnumItem(31, '换货驳回')
  static EXCHANGE_SKU_ING = new IdEnumItem(32, '换货中')
  static EXCHANGE_SKU_SUCCESS = new IdEnumItem(33, '换货成功')
  static EXCHANGE_SKU_FAIL = new IdEnumItem(34, '换货失败')

  static CLOSED = new IdEnumItem(-1, '已取消')

}

